
				<div class="poll">
					<p class="judulpoll5"> Poll Topic:</p>
					<p class=" judulpoll droid" ><?php if (isset($list_pertanyaan[0]['nama_tema'])) echo $list_pertanyaan[0]['nama_tema'];?><br />
					<span class="judulpollx">| <?php if (isset($list_pertanyaan)) echo count($list_pertanyaan);?> Pertanyaan</span></p>
					<p class="judulpoll2"><a href="<?php echo base_url()."polling/polling_con/hasil_topic_all/".$id_tema;?>">All Courses</a> | <a href="<?php echo base_url()."polling/polling_con/polling_topic/".$id_tema; ?>">Spesific Course</a></p>
				</div>
				<div class="clear"></div>
				<div class="bagbawah">
					<div class="par">
						<div class="par4">All Course —<?php echo $jumlah_course;?> Classes </div>
						<div class="droid par2"><?php echo $responden;?></div>
						<div class=" par3">Respondent</div>
					</div>
					<div id="sebelum">
                                                                                        <?php
                                                if (isset($list_pertanyaan)){
                                                    $counter=0;
                                                    $essay_counter = 0;
                                                    for ($i=0;$i<count($list_pertanyaan);$i++){
                                                        if (($list_pertanyaan[$i]['tipe_pertanyaan']=="multi") || ($list_pertanyaan[$i]['tipe_pertanyaan']=="single")){
                                                            $counter+=1;
                                                            echo "
                                                                <div class='hasilnih'>
                                                                        <p class='judulpoll3'><span class='nomer'>#".($counter)."</span>".$list_pertanyaan[$i]['isi_pertanyaan']."</p>
                                                                        <div class='tempatgrafik kiri' ><span id='grafik' class='sparklines'>";
                                                                        if (isset($list_pertanyaan[$i]['list_jawaban'])){
                                                                            for ($j=0;$j<count($list_pertanyaan[$i]['list_jawaban']);$j++){
                                                                                if (isset($list_pertanyaan[$i]['list_jawaban'][$j]['persentase'])){
                                                                                    echo $list_pertanyaan[$i]['list_jawaban'][$j]['persentase'].",";
                                                                                }
                                                                            }
                                                                        }
                                                                        echo "
                                                                        </span></div>
                                                                        <div class='malam kiri'>";
                                                                        if (isset($list_pertanyaan[$i]['list_jawaban'])){
                                                                            for ($j=0;$j<count($list_pertanyaan[$i]['list_jawaban']);$j++){
                                                                                if (isset($list_pertanyaan[$i]['list_jawaban'][$j]['persentase'])){
                                                                                    echo "
                                                                                      <p><span class='alebar a".($j+1)."'></span>".$list_pertanyaan[$i]['list_jawaban'][$j]['isi_pilihan']." ".$list_pertanyaan[$i]['list_jawaban'][$j]['persentase']."% <span class='spand'>—".$list_pertanyaan[$i]['list_jawaban'][$j]['votes']." Votes</span></p>
                                                                                    ";
                                                                                }
                                                                            }
                                                                        }
                                                                        echo"
                                                                            </div>
                                                                </div>
                                                                <div class='clear'></div><br>

                                                            ";
                                                        }
                                                        else{ // essay
                                                            $counter+=1;
                                                            $essay_counter+=1;
//                                                            echo (17 - (17 % 5)) / 5;
                                                            // menghitung jumlah tabs;
                                                            if (isset($list_pertanyaan[$i]['list_jawaban'])){
                                                                echo "
                                                                    <p class='judulpoll3'><span class='nomer'>#".($counter)."</span>".$list_pertanyaan[$i]['isi_pertanyaan']."</p>
                                                                    <ul class='tabs'>
                                                                        ";
                                                                        if (isset($list_pertanyaan[$i]['list_jawaban'])){
                                                                            $total = count($list_pertanyaan[$i]['list_jawaban']);
                                                                            $divide = ($total-($total%5))/5;
                                                                            if ($total%5>0){
                                                                                $divide+=1;
                                                                            }
                                                                            for ($j=1;$j<=$divide;$j++){
                                                                                echo "
                                                                                    <li><a href='#tab".$essay_counter.$j."'>".$j."</a></li>
                                                                                    ";
                                                                            }
                                                                            echo "</ul>";
                                                                            echo "
                                                                                <div class='tab_container'>";
                                                                            $content_counter=0;
                                                                            for ($j=1;$j<=$divide;$j++){
                                                                                echo "<div id='tab".$essay_counter.$j."' class='tab_content'>";
                                                                                $end_counter=0;
                                                                                while (($content_counter<$total) && ($end_counter<5)){
                                                                                    echo "<p>".$list_pertanyaan[$i]['list_jawaban'][$content_counter]['JAWABAN']." <span class='spand'>—".$list_pertanyaan[$i]['list_jawaban'][$content_counter]['NAMA_USER']."</span></p>";
                                                                                    $content_counter+=1;
                                                                                    $end_counter+=1;
                                                                                }
                                                                                echo "</div>";
                                                                            }
                                                                            echo "</div><br>";
                                                                        }

                                                            }
                                                        }
                                                    }
                                                }
                                            ?>
						<!--<div class="hasilnih">
							<p class="judulpoll3"><span class="nomer">#1</span>Darimana Anda mengetahui ComLabs IT Course</p>
							<div class="tempatgrafik kiri" ><span id="grafik" class="sparklines">40,30,10</span></div>
							<div class="malam kiri">
								  <p><span class="alebar a1"></span>Poster 50% <span class="spand">—5 Votes</span></p>
								  <p><span class="alebar a2"></span>Spanduk 30% <span class="spand">—5 Votes</span></p>
								  <p><span class="alebar a3"></span>Teman 20% <span class="spand">—5 Votes</span></p>
							</div>
						</div>
						<div class="clear"></div>
						<div class="hasilnih">
							<p class="judulpoll3"><span class="nomer">#2</span>Yang Anda sukai dari ComLabs IT Course</p>
							<div class="tempatgrafik kiri" ><span id="grafik" class="sparklines">40,30,20,15,15</span></div>
							<div class="malam kiri">
								<p><span class="alebar a1"></span>Fasilitasnya 50% <span class="spand">—5 Votes</span></p>
								<p><span class="alebar a2"></span>Instrukturnya 30% <span class="spand">—5 Votes</span></p>
								<p><span class="alebar a3"></span>Modulnya 20% <span class="spand">—5 Votes</span></p>
								<p><span class="alebar a4"></span>Cara Pengajaran dan Pendekatan Personalnya 10% <span class="spand">—5 Votes</span></p>
								<p><span class="alebar a5"></span>Konsumsinya 10% <span class="spand">—5 Votes</span></p>
							</div>
						</div>
						<div class="clear"></div>
						<div class="hasilnih">
							<p class="judulpoll3"><span class="nomer">#3</span>Saran Anda untuk ComLabs IT Course yang lebih baik</p>
							<ul class="tabs">
								<li><a href="#tab1">1</a></li>
								<li><a href="#tab2">2</a></li>
								<li><a href="#tab3">3</a></li>
							</ul>
							<div class="tab_container">
								<div id="tab1" class="tab_content">
									<p>Virus Komputer Bikin Kacau Rumah Sakit <span class="spand">—Bhara</span></p>
									<p>Pangeran Pembeli Saham Twitter, Orang Terkaya di Arab Saudi <span class="spand">—Bhara</span></p>
									<p>Telkom Bantah Anak Perusahaan Jadi CP Ilegal <span class="spand">—Bhara</span></p>
								</div>
								<div id="tab2" class="tab_content">
									<p>Canon Usung Kamera Kompak Mirrorless? <span class="spand">—Bhara</span></p>
									<p>Tantang iPad Secara Langsung, Google Siapkan Tablet Nexus <span class="spand">—Bhara</span></p>
									<p>Pangeran Arab Beli Saham Twitter untuk Bungkam Protes? <span class="spand">—Bhara</span></p>
								</div>
								<div id="tab3" class="tab_content">
									<p>Ini Dia Daftar 78 CP dan Short Code Ilegal <span class="spand">—Bhara</span></p>
									<p>Operator Kembalikan Pulsa Rp 946 Juta <span class="spand">—Bhara</span></p>
									<p>Kim Jong-il Wafat, Kuba 3 Hari Berkabung <span class="spand">—Bhara</span></p>
								</div>
								</div>
						</div>-->
					</div><!-- end div id sebelum -->
				</div><!-- end div id bagbawah -->